package com.qf.application.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.swing.tree.DefaultTreeCellEditor;
import java.util.Date;

@Data
@TableName("t_emp")
public class Emp {

    @TableId(type = IdType.AUTO)
    private Integer empno;

    private String ename;

    private Double sal;

    private Double comm;

    private Integer deptno;

    private String job;

    @JSONField(format = "yyyy-MM-dd")
    private Date hiredate;

    private Integer mgr;

    @TableField(exist = false)
    private String mname;

    @TableField(exist = false)
    private String dname;

    private Date createTime;
}
